/*
 *    Document   : McTonner
 *    Created on : 04/03/2013, 15:28:17
 *    Author     : Fiúza <rbfiuza@gmail.com>
 */


Ext.define('FC.store.McTonner',{
    extend:'Ext.data.Store',
    
    model:'FC.model.McTonner',
    autoLoad: false,
    proxy: {
        type: 'ajax',
        
        url: 'listaMcTonner',
        extraParams: {
            store_id: 1
        },
        reader: {
            type: 'json',
            root: 'tonner',
            successProperty: 'success'
        }
    },
    
    listeners: {
        load : function(store) {
        //if need something to do after the store loads
        } 
    }     
});